<template>
  <div class="center">
    <el-card>
      <div class="center">
        <el-button @click="admin">后台首页</el-button>
        <el-button @click="index">前台首页</el-button>
      </div>
    </el-card>
  </div>
</template>

<script>
import View from '../../views/View';

export default {
  extends: View,
  props: {
    value: Object,
  },
  mounted() {
    this.$emit('activeNext', true);
  },
  methods: {
    admin() {
      this.$root.$EventBus.emit('redirect', this.view.admin);
    },
    index() {
      this.$root.$EventBus.emit('redirect', this.view.index);
    },
  },
};
</script>

<style scoped>
  p {
    text-align: left;
  }
  .el-form-item {
    margin-top: 50px;
  }
</style>
